package com.sise.service;



import javax.validation.constraints.*;
import java.io.Serializable;

/**
 * 作者：idea
 * 日期：2018/8/22
 * 描述：
 */
public class ValidationParamter implements Serializable {

    @NotNull
    @Size(min = 2,max = 20)
    private String name;

    @NotNull
    @Pattern(regexp = "^\\s*\\w+(?:\\.{0,1}[\\w-]+)*@[a-zA-Z0-9]+(?:[-.][a-zA-Z0-9]+)*\\.[a-zA-Z]+\\s*$")
    private String email;

    @Min(18)
    @Max(100)
    private int age;
}
